import request from '@/utils/request'

// 查询财务记账列表
export function listFinanceAccounts(query) {
  return request({
    url: '/system/financeAccounts/list',
    method: 'get',
    params: query
  })
}

// 查询财务记账详细
export function getFinanceAccounts(id) {
  return request({
    url: '/system/financeAccounts/' + id,
    method: 'get'
  })
}

// 新增财务记账
export function addFinanceAccounts(data) {
  return request({
    url: '/system/financeAccounts',
    method: 'post',
    data: data
  })
}

// 修改财务记账
export function updateFinanceAccounts(data) {
  return request({
    url: '/system/financeAccounts',
    method: 'put',
    data: data
  })
}

// 删除财务记账
export function delFinanceAccounts(id) {
  return request({
    url: '/system/financeAccounts/' + id,
    method: 'delete'
  })
}
